<?php

namespace jx\core;

/*基类控制器*/

class Controller
{
    //默认返回上一页
    private $url = 'window.history.back();';

    protected function jumpUrl($url = 'window.history.back();')
    {
        if (!empty($url)) {
            $this->url = "location.href='{$url}'";
        }
        return $this;
    }

    protected function message($message = '操作完成')
    {
        include('./view/message.php');
        exit();
    }
}